package com.bjsxt;

/**
 * 总经理
 *
 * @author melo
 */
public class GeneralManager extends Leader {

    public GeneralManager(String name) {
        super(name);
    }

    @Override
    public void handleRequest(LeaveRequest leaveRequest) {
        if (leaveRequest.getLeaveDays() < 30) {
            System.out.println("员工：" + leaveRequest.getEmployeeName() + "请假，天数：" + leaveRequest.getLeaveDays() + ",理由：" + leaveRequest.getReason());
            System.out.println(this.name + "总经理请假审批通过");
        } else {
            System.out.println("莫非" + leaveRequest.getEmployeeName() + "想辞职，居然请假" + leaveRequest.getLeaveDays() + "天！");
            System.out.println("审批不通过!");
        }
    }

}
